package com.qf.mybatisplus.service.impl;

import com.qf.mybatisplus.aspect.druid.DataBase;
import com.qf.mybatisplus.bean.entity.Student;
import com.qf.mybatisplus.mapper.StudentMapper;
import com.qf.mybatisplus.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
//    @DataBase("db3")
    public Student getOne(String name) {
        return studentMapper.getOne(name);
    }
}
